<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:p="http://primefaces.prime.com.tr/ui">



<h:head>
	<title><h:outputText value="#{bundle['titulo_principal']}" /></title>

</h:head>

<h:body>
			<h:form>
    		<p:panel id= "painel" header="#{bundle['menu_esquematipoAtributovisualizar']}" >
    		<p:dataTable var="umTipoAtributo" value="#{controle.esquema.listas.tlista}" id="TAList"
    				paginator="true" rows="10"  
					paginatorTemplate="{CurrentPageReport}  {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"  
					rowsPerPageTemplate="5,10,15"
					style="font-size: 11px; man-height: 2000px; min-width: 800px;">  
  
	        <f:facet name="header">  
	            <h:outputText value="#{bundle['menu_esquematipoAtributovisualizar']}"/>
	        </f:facet>  
	  
	        <p:column headerText="#{bundle['lbl_nome']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umTipoAtributo.nome}" />  
	                </f:facet>  
	                <f:facet name="input"> 
	                    <h:outputText value="#{umTipoAtributo.nome}" />  
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>  
	  
	        <p:column headerText="#{bundle['lbl_descricao']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umTipoAtributo.descricao}" />  
	                </f:facet>  
	                <f:facet name="input">  
	                    <p:inputTextarea value="#{umTipoAtributo.descricao}"/>  
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>  
	  
	        <p:column headerText="#{bundle['lbl_superior']}">  
	            <p:cellEditor>
	                <f:facet name="output">
	                    <p:dataList value="#{umTipoAtributo.superior}" var="superiores" itemType="circle">  
    						#{superiores.nome} 
						</p:dataList> 
	                </f:facet>
	                <f:facet name="input">
	                	<p:selectManyMenu id="superiorT" value="#{umTipoAtributo.superior}">
							<f:selectItems value="#{controle.esquema.listas.tlista}"
                    				var="Stipoatributo" itemLabel="#{Stipoatributo.nome}"
                    				itemValue="#{Stipoatributo}" />
						</p:selectManyMenu>
	                </f:facet>
	            </p:cellEditor>  
	        </p:column>  
	  
	        <p:column headerText="#{bundle['lbl_ordenacao']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umTipoAtributo.ordenacao}" />  
	                </f:facet>  
	                <f:facet name="input">  
						<p:selectOneMenu id="ordenacao" value="#{umTipoAtributo.ordenacao}">
								<f:selectItem itemLabel="Selecione um" itemValue="" />
								<f:selectItem itemLabel="case insensitive, space insensitive" itemValue="caseIgnoreOrderingMatch" />
								<f:selectItem itemLabel="case sensitive, space insensitive" itemValue="caseExactOrderingMatch" />
								<f:selectItem itemLabel="integerOrderingMatch" itemValue="integer" />
								<f:selectItem itemLabel="numerical" itemValue="numericStringOrderingMatch" />
								<f:selectItem itemLabel="octetStringOrderingMatch" itemValue="octet string" />
						</p:selectOneMenu>
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>
	        
	        <p:column headerText="#{bundle['lbl_igualdade']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umTipoAtributo.igualdade}" />  
	                </f:facet>  
	                <f:facet name="input">  
						<p:selectOneMenu id="igualdade" value="#{umTipoAtributo.igualdade}"
								>
								<f:selectItem itemLabel="Selecione um" itemValue="" />
								<f:selectItem itemLabel="boolean" itemValue="booleanMatch" />
								<f:selectItem itemLabel="case insensitive, space insensitive" itemValue="caseIgnoreMatch" />
								<f:selectItem itemLabel="case sensitive, space insensitive" itemValue="caseExactMatch" />
								<f:selectItem itemLabel="distinguished name" itemValue="distinguishedNameMatch" />
								<f:selectItem itemLabel="integer" itemValue="integerMatch" />
								<f:selectItem itemLabel="numerical" itemValue="numericStringMatch" />
								<f:selectItem itemLabel="octet string" itemValue="octetStringMatch" />
								<f:selectItem itemLabel="object identifier" itemValue="objectIdentiferMatch" />
							</p:selectOneMenu>
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>
	        
	        <p:column headerText="#{bundle['lbl_substring']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umTipoAtributo.substring}" />  
	                </f:facet>  
	                <f:facet name="input">  
							<p:selectOneMenu id="substring" value="#{umTipoAtributo.substring}">
								<f:selectItem itemLabel="Selecione um" itemValue="" />
								<f:selectItem itemLabel="caseIgnoreSubstringsMatch" itemValue="case insensitive, space insensitive" />
								<f:selectItem itemLabel="case sensitive, space insensitive" itemValue="caseExactSubstringsMatch" />
								<f:selectItem itemLabel="numerical" itemValue="numericStringSubstringsMatch" />
							</p:selectOneMenu>
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>
	        
	        <p:column headerText="#{bundle['lbl_sintaxe']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umTipoAtributo.sintaxe}" />  
	                </f:facet>  
	                <f:facet name="input">  
							<p:selectOneMenu id="sintaxe" value="#{umTipoAtributo.sintaxe}" activeIndex="0">
								<f:selectItem itemLabel="Selecione um" itemValue="" />
								<f:selectItem itemLabel="boolean value" itemValue="1.3.6.1.4.1.1466.115.121.1.7" />
								<f:selectItem itemLabel="Unicode (UTF-8) string" itemValue="1.3.6.1.4.1.1466.115.121.1.15" />
								<f:selectItem itemLabel="LDAP DN" itemValue="1.3.6.1.4.1.1466.115.121.1.12" />
								<f:selectItem itemLabel="integer" itemValue="1.3.6.1.4.1.1466.115.121.1.27" />
								<f:selectItem itemLabel="numeric string" itemValue="1.3.6.1.4.1.1466.115.121.1.36" />
								<f:selectItem itemLabel="object identifier" itemValue="1.3.6.1.4.1.1466.115.121.1.38" />
								<f:selectItem itemLabel="arbitrary octets" itemValue="1.3.6.1.4.1.1466.115.121.1.40" />
							</p:selectOneMenu>
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>
	        
	        <p:column headerText="#{bundle['lbl_monoValorado']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <p:selectBooleanCheckbox value="#{umTipoAtributo.monovalorado}" disabled="true"/> 
	                </f:facet>  
	                <f:facet name="input">  
						<p:selectBooleanCheckbox id="monovalorado" value="#{umTipoAtributo.monovalorado}"/> 
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>
	        
	        <p:column headerText="#{bundle['lbl_usagem']}">  
	            <p:cellEditor>  
	                <f:facet name="output">  
	                    <h:outputText value="#{umTipoAtributo.usagem}" />
	                </f:facet>  
	                <f:facet name="input">  
						<p:selectOneRadio id="usagem" layout="pageDirection" value="#{umTipoAtributo.usagem}">
								<f:selectItem itemValue="userApplication" itemLabel="#{bundle['lbl_aplicacaousuario']}" />
								<f:selectItem itemValue="directoryOperation" itemLabel="#{bundle['lbl_aplicacaodiretorio']}" />
								<f:selectItem itemValue="distributedOperation" itemLabel="#{bundle['lbl_aplicacaodistribuida']}" />
								<f:selectItem itemValue="dSAOperation" itemLabel="#{bundle['lbl_aplicacaodsa']}" />
						</p:selectOneRadio>
	                </f:facet>  
	            </p:cellEditor>  
	        </p:column>
        
	        <p:column headerText="Options">  
	            <p:rowEditor />  
	        </p:column>  
	  
	    </p:dataTable>
    		
    		</p:panel>
    		</h:form>
    </h:body>
</html>